package com.lovo.boot.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @title
 * @author: luo
 * @date: 2020/11/24 21:20
 */
@Data
@ApiModel("用户数据传输对象")
public class UserDTO implements Serializable {
    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户姓名",required = true,example = "张三")
    @NotBlank
    private String userName;

    /**
     * 用户密码
     */
    @NotBlank
    @ApiModelProperty(value = "用户密码",required = true,example = "123456")
    private String userPwd;

}
